#pragma once
#include <SetupAPI.h>
#include <Devguid.h>
#include <Cfgmgr32.h>

#pragma comment(lib, "SetupAPI.lib")
#pragma comment(lib, "Cfgmgr32.lib")

class CSetupAPIHelper
{
public:
	CSetupAPIHelper();
	~CSetupAPIHelper();

	BOOL Init(const GUID* pClassGuid);
	VOID UnInit();
	BOOL GetDeviceFriendlyName(CDuiString& DeviceDisplayName, DWORD dwPropType = SPDRP_FRIENDLYNAME);

private:
	HDEVINFO	m_hDevInfo;
};

